<script setup lang="ts">
import { ApiDetail } from '@/api/api-manage/detail'

const props = defineProps<{
  data: ApiDetail
}>()
</script>

<template>
  <div>
    <div v-if="props.data.enabledStatus == '1'" class="space-y-4">
      <iframe
        src="http://localhost/chatbot/eCICVi8fxF4EHE7R"
        style="width: 100%; height: 100%; min-height: 700px"
        frameborder="0"
        allow="microphone"
      />
    </div>
    <div v-else>
      <h3>接口已停用，请联系管理员开启</h3>
    </div>
  </div>
</template>
